<template>
<div>
<van-nav-bar
  title="在线客服"
  left-text=""
  right-text="电话咨询"
  left-arrow
  @click-left="left"
/>

<ul>
    <li><p></p></li>
</ul>
<div class="help">
    <p>转人工</p>
    <p>买车费用</p>
    <p>保险查询</p>
    <p>车辆所在地</p>
    <p>过户材料</p>
</div>
<div class="inp">
    <input type="text" placeholder="请输入消息" @keydown.enter="inputValue">
    <i class="iconfont">&#xe601;</i>
    <i class="iconfont">&#xe600;</i>
</div>
</div>
</template>

<script>
export default {
  name: 'AppDialog',
  methods: {
    inputValue() {
      const ali = document.querySelector('li')
      const val = document.querySelector('input').value
      ali.innerHTML += `
      <li>${val}</li>
      `
      document.querySelector('input').value = ''
    },
    left() {
      this.$router.go(-1)
    },
  },
}
</script>

<style lang="scss" scoped>
@font-face {
  font-family: 'iconfont';  /* Project id 3285967 */
  src: url('//at.alicdn.com/t/font_3285967_kz61sekub0d.woff2?t=1648525498132') format('woff2'),
       url('//at.alicdn.com/t/font_3285967_kz61sekub0d.woff?t=1648525498132') format('woff'),
       url('//at.alicdn.com/t/font_3285967_kz61sekub0d.ttf?t=1648525498132') format('truetype');
}
.iconfont{
    font-family:"iconfont" !important;
    font-size:28px;font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 30px;
    }
.help{
    display: flex;
    justify-content: space-around;
    background-color: #eff2f6;
    margin-bottom: 0px;
    p{
        // display: inline;
        // float: left;
        min-width: 130px;
        min-height: 50px;
        line-height: 50px;
        font-size: 12px;
        background-color: #fff;
        text-align: center;
        border-radius: 20%;
        float: left;
    }
}
ul{
    background-color: #eff2f6;
    min-width: 100%;
    min-height: 1100px;
    margin-top: -40px;
  li{
    margin-right: 3px;
    margin-top: 30px;
    text-align: right;
    line-height: 60px;
    min-width: 20px;
    }
}
.inp{
    background-color: #eff2f6;
    height: 140px;
    input{
    height: 80px;
    letter-spacing: 1px;
    width: 500px;
    margin-left: 20px;
    border: none;
    border-radius:5%;
}
}
input::-webkit-input-placeholder {
color: #bec5d8;
}
</style>
